package com.huaxin.hxmodulestatisticalanalysis.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class LoadRateStatsVO {
    @Schema(description = "设备ID")
    private Long deviceId;

    @Schema(description = "组织ID")
    private String orgId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "日期")
    private LocalDateTime date;

    @Schema(description = "时间段")
    private String periodType;

    @Schema(description = "平均功率（kW）")
    private BigDecimal avgPowerKw;

    @Schema(description = "最大功率（kW）")
    private BigDecimal maxPowerKw;

    @Schema(description = "负载率（%）")
    private BigDecimal loadRatePercent;

    @Schema(description = "数据数量") // ✅ 修改这里
    private Long dataCount; // 改为 Long
}